package routers

import (
	"github.com/astaxie/beego"
	"payspace/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	ns :=
		beego.NewNamespace("/api",
			//添加路由
			beego.NSNamespace("/v1",
				beego.NSInclude(
					&controllers.MainController{},
				),
			),
		)
	beego.AddNamespace(ns)
}
